package com.atguigu.tingshu.user.service;

import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import com.atguigu.tingshu.vo.user.UserPaidRecordVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {

    void updateUserInfo(UserInfoVo userInfoVo, Long userId);

    UserInfoVo getUserInfo(Long userId);

    Map<String, Object> wxLogin(String code);

    Map<Long, Integer> userIsPaidTrack(Long albumId, List<Long> trackNeedPaidList, Long userId);

    Boolean isPaidAlbum(Long albumId, Long userId);

    List<Long> findUserPaidTrackList(Long albumId, Long userId);

    int savePaidRecord(UserPaidRecordVo userPaidRecordVo);

    void updateVipExpireStatus();
}
